//
//  EmptyTableViewCell.m
//  HuaMuJinRong
//
//  Created by 吴建东 on 16/3/11.
//  Copyright © 2016年 EIMS. All rights reserved.
//

#import "EmptyTableViewCell.h"

@implementation EmptyTableViewCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        // DLOG(@"--%f--%f",self.frame.size.width,self.frame.size.height);
        _emptyImageView = [UIImageView imageViewWithFrame:RECTMAKE((MSWIDTH - 60)/2, 50, 60, 60) imageFile:@"Common_Empty" superview:self.contentView];
        _emptyImageView.contentMode = UIViewContentModeCenter;
        
        if (__isLoading == YES) {
            
             _emptyLabel = [UILabel labelWithFrame:RECTMAKE(10, CGRectGetMaxY(_emptyImageView.frame) + 10, MSWIDTH - 20, 30) text:@"正在加载" textColor:KGrayColor textFont:14.0 fitWidth:NO superview:self.contentView];
        }else{
        _emptyLabel = [UILabel labelWithFrame:RECTMAKE(10, CGRectGetMaxY(_emptyImageView.frame) + 10, MSWIDTH - 20, 30) text:@"暂无记录" textColor:KGrayColor textFont:14.0 fitWidth:NO superview:self.contentView];
        }
        _emptyLabel.textAlignment = NSTextAlignmentCenter;
    }
    return self;
}

- (void)awakeFromNib {
    // Initialization code
    [super awakeFromNib];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
